<!DOCTYPE html>
<html lang="zh" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>{{ cluster_name }} 部署报告</title>
    <style media="screen">
      body {
        width: 80%;
      }
      table {
        width: 100%;
      }
      table,tr,td {
        border-width: 1px;
        border-color: #000;
        border-style: solid;
        border-spacing: 0;
      }
      td:nth-child(1) {
        text-align: right;
        max-width: 80px;
        width: 10%;
        vertical-align: top;
      }
      td:nth-child(2) {
        word-break: break-all;
        max-width: 70%;
        width: 70%;
      }
      td {
        padding: 10px;
      }
    </style>
  </head>
  <body>
    <h3>K8S</h3>
    <table>
      <tr>
        <td>URL</td>
        <td>
          <a href="{{ dashboard_url.stdout }}" target="_blank">
            {{ dashboard_url.stdout }}
          </a>
        </td>
        <td>Kubernetes 管理界面</td>
      </tr>
      <tr>
        <td>TOKEN</td>
        <td>{{ dashboard_token.stdout }}</td>
        <td>登录管理界面的令牌</td>
      </tr>
    </table>

    <h3>Traefik</h3>
    <table>
      <tr>
        <td>URL</td>
        <td>
          <a href="http://{{ ip }}:{{ traefik_dashboard | json_query('resources[0].spec.ports[0].nodePort') }}" target="_blank">
            http://{{ ip }}:{{ traefik_dashboard | json_query('resources[0].spec.ports[0].nodePort') }}
          </a>
        </td>
        <td>查看 Traefik 运行状态</td>
      </tr>
    </table>

    <h3>CEPH</h3>
    <table>
      <tr>
        <td>Monitor keyring</td>
        <td>{{ keyring.stdout }}</td>
        <td>访问 Ceph monitor 的秘钥</td>
      </tr>
    </table>
  </body>
</html>
